package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.AssociatedDevices;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【associated_devices(关联设备)】的数据库操作Service
 * @createDate 2024-11-25 09:23:37
 */
public interface AssociatedDevicesService extends IService<AssociatedDevices> {

    /*
     * 插入关联设备
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertAssociatedDevices(List<AssociatedDevices> associatedDevices);

    /*
     * 更新关联设备/删除关联设备
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateAssociatedDevices(List<AssociatedDevices> associatedDevices);

    /*
     * 根据设备编号删除关联设备
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean DeleteAssociatedDevices(List<String> code);

    /*
     * 根据设备编号查询关联设备
     */
    List<AssociatedDevices> SelectAssociatedDevicesByCode(String code);

}
